/**
 * 
 */
package de.tum.in.eist.poll.client.views.widgets.questions;

import com.google.gwt.user.client.ui.TextBox;

import de.tum.in.eist.poll.shared.beans.TextQuestion;

/**
 * @author Sebastian Hofstetter
 *
 */
public class QuestionCreationTextWidget extends QuestionCreationWidget{
	private TextBox textBox = new TextBox();
	
	public QuestionCreationTextWidget() {
		textBox.setText("Text-Question Description");
		textBox.setWidth("400px");
		add(textBox);
	}

	/* (non-Javadoc)
	 * @see de.tum.in.eist.poll.client.views.widgets.questions.QuestionCreationWidget#getQuestion()
	 */
	@Override
	public TextQuestion getQuestion() {
		return new TextQuestion(textBox.getText(), true);
	}

}
